import { type App } from "vue"
import { permission } from "./permission"
import { hasRole } from './permission/hasRole'
import { hasPermi } from './permission/hasPermi'

/** 挂载自定义指令 */
export function loadDirectives(app: App) {
  app.directive("permission", permission)
  hasRole(app)
  hasPermi(app)
}
